<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    var d = new Date();
    /*
    d.getFullYear()
    d.getMonth()+1
    d.getDate()
    d.getHours()
    d.getMinutes()
    d.getSeconds()
    d.getMilliseconds()
    */
    //d.getTime()
    d = new Date(2016,10,5);  //11月
    //document.write(d.getFullYear());
    //document.write(d.getMonth()+1);
    //document.write(d.getDay());

    d = new Date(2017,0,14);  //2017年1月14日
    //1985 10 20
    d = new Date(1985,9,20);
    document.write(d.getDay());

</script>
</body>
</html>